<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
   <h3 class="title"></h3>
   <div class="box">蒹葭苍苍 白露<strong>微霜</strong>
</div>
</body>
<script>
    const me1 = document.querySelector('.title');
    const me2 = document.querySelector('.box');
    console.log(me1.innerHTML);
    console.log(me2.innerHTML);
    console.log(me1.innerText);
    console.log(me2.innerText);
    console.log(me1.textContent);
    console.log(me2.textContent);
    me1.innerHTML = '诗经<strong>小雅></strong>';
    me1.textContent = '诗经<br>';

</script>
</html>